package com.mda.core;

import com.mda.log.Logger;
import com.mda.plugin.IPlugin;

import java.util.List;

/**
 * Created by Administrator on 13-12-8.
 */
public final class MdaConfig {
    private static List<IPlugin> plugins;

    public static void init() {
        initLogFactory();
        initPlugins();
    }

    private static void initPlugins() {
        if (plugins == null) {
            return;
        }
        for (int i = 0, length = plugins.size(); i < length; i++) {
            plugins.get(i).init();
        }
    }

    private static void initLogFactory() {
        Logger.initFactory();
    }

}
